﻿<%@ Page Language="C#" MasterPageFile="~/PaginaInicio.master" AutoEventWireup="true" CodeFile="AsignarInvitados.aspx.cs" Inherits="AsignarInvitados" Title="Página sin título" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style5
        {
            width: 549px;
        }
        
           
        .accordionCabecera
{

background-color: #118BD9;
font-family: Tahoma;
font-size: 12px;
font-weight: bold;
margin-bottom: 2px;
padding: 2px;
cursor: pointer;
Height: 20px;
color: #CCCCCC;

}


.accordionContenido
{
font-family: Tahoma;
background-color: #0085C6;
border: none;

border-top: none;
margin-bottom: 7px;
font-size: 12px;
padding: 3px;
}


        .tablaEncabezado
        {
            color: #FFFFFF;
            height: 15px;
            font-family: Tahoma;
            font-size: medium;
            background-color: #C62D73;
            font-size: small;
            
        }
        
                .style27
        {
            color: #FFFFFF;
            height: 23px;
            font-family: Tahoma;
            font-size: medium;
        }
        .style62
        {
            width: 262px;
            text-align: right;
        }
                                        
        .style10
        {
            border: medium solid #0085C6;
            width: 228px;
            color: #CCCCCC;
            font-size: small;
            font-family: Tahoma;
            margin-left: 0px;
            margin-right: 0px;
            margin-top: 0px;
        }
        
        
        .style63
        {
            width: 187px;
        }
        .style64
        {
            font-family: Tahoma;
            font-size: small;
            color: #FFFFFF;
        }
           
        .tablaFilas
        {
        	color: #FFFFFF;
            height: 15px;
            font-family: Tahoma;
            font-size: medium;
            font-size:small;
        }
     
           
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    
    <table style="width: 100%;" cellspacing="-1">
        <tr>
            <td>
                &nbsp;</td>
            <td class="style5">
                <asp:Panel ID="Panel1" runat="server" Height="100%"  
                        Width="560px">
                
                    <table style="width: 100%;" cellpadding="-1" cellspacing="-1">
                        <tr>
                            <td bgcolor="#C62D73" class="style27" 
                             
                                style="border-bottom-color: #000000; border-bottom-width: medium; border-bottom-style: solid;" 
                                colspan="2">
                                 Asignar Invitados</td>
                        </tr>
                        <tr>
                            <td colspan="2" bgcolor="#00334C" style="text-align: center">
                                <table bgcolor="#00547D" 
                                    style="width: 98%; margin-left: 5px; margin-right: 10px; margin-bottom: 5px; margin-top: 5px;">
                                    <tr>
                                        <td class="style63" rowspan="8">
                                            <asp:Image ID="imgDistribucion" runat="server" Width="250px" />
                                        </td>
                                        <td style="text-align: left">
                                            <asp:DropDownList ID="ddlNroMesa" runat="server" AppendDataBoundItems="True" 
                                                BackColor="#0085C6" CssClass="style10" Font-Names="Tahoma" ForeColor="#CCCCCC" 
                                                style="font-family: Tahoma" ToolTip="Seleccione una mesa." Width="200px" 
                                                onselectedindexchanged="ddlNroMesa_SelectedIndexChanged" 
                                                AutoPostBack="True">
                                                <asp:ListItem Value="Nro">Número de mesa</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: left">
                                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                                <ContentTemplate>
                                                    <asp:TextBox ID="txtNombre" runat="server" BackColor="#0085C6" 
                                                        BorderStyle="None" BorderWidth="0px" Font-Italic="True" ForeColor="#CCCCCC" 
                                                        Height="20px" Width="200px"></asp:TextBox>
                                                    <cc1:TextBoxWatermarkExtender ID="txtNombre_TextBoxWatermarkExtender" 
                                                        runat="server" TargetControlID="txtNombre" WatermarkText="Nombre">
                                                    </cc1:TextBoxWatermarkExtender>
                                                </ContentTemplate>
                                                <Triggers>
                                                    <asp:AsyncPostBackTrigger ControlID="ddlNroMesa" 
                                                        EventName="SelectedIndexChanged" />
                                                </Triggers>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: left">
                                            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                                <ContentTemplate>
                                                    <asp:TextBox ID="txtApellido" runat="server" BackColor="#0085C6" 
                                                        BorderStyle="None" BorderWidth="0px" Font-Italic="True" ForeColor="#CCCCCC" 
                                                        Height="20px" Width="200px"></asp:TextBox>
                                                    <cc1:TextBoxWatermarkExtender ID="txtApellido_TextBoxWatermarkExtender" 
                                                        runat="server" TargetControlID="txtApellido" WatermarkText="Apellido">
                                                    </cc1:TextBoxWatermarkExtender>
                                                </ContentTemplate>
                                                <Triggers>
                                                    <asp:AsyncPostBackTrigger ControlID="ddlNroMesa" 
                                                        EventName="SelectedIndexChanged" />
                                                </Triggers>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: left">
                                            <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                                                <ContentTemplate>
                                                    <asp:TextBox ID="txtDni" runat="server" BackColor="#0085C6" BorderStyle="None" 
                                                        BorderWidth="0px" Font-Italic="True" ForeColor="#CCCCCC" Height="20px" 
                                                        Width="200px"></asp:TextBox>
                                                    <cc1:TextBoxWatermarkExtender ID="txtDni_TextBoxWatermarkExtender" 
                                                        runat="server" TargetControlID="txtDni" WatermarkText="DNI">
                                                    </cc1:TextBoxWatermarkExtender>
                                                </ContentTemplate>
                                                <Triggers>
                                                    <asp:AsyncPostBackTrigger ControlID="ddlNroMesa" 
                                                        EventName="SelectedIndexChanged" />
                                                </Triggers>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: left">
                                            <span class="style64">Seleccione el menú que le corresponde</span><br />
                                            <asp:CheckBoxList ID="cblMenu" runat="server" 
                                                BackColor="#00547D" BorderStyle="None" ForeColor="#CCCCCC" 
                                                style="font-size: small; font-family: Tahoma; color: #CCCCCC; text-align: right;" 
                                                TextAlign="Left" Width="200px">
                                            </asp:CheckBoxList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: left">
                                            <span>
                                            <asp:Button ID="btnAgregar" runat="server" BackColor="#0085C6" 
                                                BorderStyle="None" Font-Bold="True" Font-Italic="False" ForeColor="#CCCCCC" 
                                                Height="23px" style="margin-top: 0px" Text="Agregar" 
                                                ToolTip="Agregar Invitados" ValidationGroup="1" 
                                                onclick="btnAgregar_Click1" />
                                            </span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: left">
                                            <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                                                <ContentTemplate>
                                                    <asp:GridView ID="gvInvitados" runat="server" AllowSorting="True" 
                                                        AutoGenerateColumns="False" Height="90%" OnRowDeleting="gvInvitados_BorrarFila" 
                                                        onselectedindexchanged="gvInvitados_SelectedIndexChanged" Width="100%">
                                                        <RowStyle CssClass="tablaFilas" />
                                                        <Columns>
                                                            <asp:BoundField DataField="nombre" HeaderText="Nombre">
                                                                <HeaderStyle CssClass="tablaEncabezado" />
                                                                <ItemStyle CssClass="tablaFilas" />
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="Apellido" HeaderText="Apellido">
                                                                <HeaderStyle CssClass="tablaEncabezado" />
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="Menu" HeaderText="Menú">
                                                                <HeaderStyle CssClass="tablaEncabezado" />
                                                                <ItemStyle CssClass="tablaFilas" />
                                                            </asp:BoundField>
                                                            <asp:CommandField HeaderText="Eliminar" ShowDeleteButton="True">
                                                                <HeaderStyle CssClass="tablaEncabezado" />
                                                                <ItemStyle ForeColor="White" />
                                                            </asp:CommandField>
                                                        </Columns>
                                                    </asp:GridView>
                                                </ContentTemplate>
                                                <Triggers>
                                                    <asp:AsyncPostBackTrigger ControlID="btnAgregar" EventName="Click" />
                                                    <asp:AsyncPostBackTrigger ControlID="gvInvitados" EventName="RowDeleting" />
                                                </Triggers>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: left">
                                            &nbsp;<asp:UpdatePanel ID="UpdatePanel5" runat="server">
                                                <ContentTemplate>
                                                    <asp:Label ID="Label1" runat="server" 
                                                        style="text-align: left; color: #FFFFFF; font-family: Tahoma; font-size: small;" 
                                                        Text="Invitados Restantes: "></asp:Label>
                                                    <asp:Label ID="lblInvRestantes" runat="server" 
                                                        style="text-align: left; color: #FFFFFF; font-family: Tahoma; font-size: small;"></asp:Label>
                                                </ContentTemplate>
                                                <Triggers>
                                                    <asp:AsyncPostBackTrigger ControlID="btnAgregar" EventName="Click" />
                                                </Triggers>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td class="style62" bgcolor="#00334C" style="border-top-color: #000000; border-top-width: medium; border-top-style: solid;">
                                &nbsp;</td>
                            <td bgcolor="#00334C" style="text-align: right; border-top-color: #000000; border-top-width: medium; border-top-style: solid;">
                               <span>
                                &nbsp;
                                <asp:Button ID="btnCancelar" runat="server" BackColor="#0085C6" 
                                    BorderStyle="None" Font-Bold="True" Font-Italic="False" ForeColor="#CCCCCC" 
                                    Height="23px" style="margin-top: 0px" Text="Cancelar" 
                                    ValidationGroup="1" onclick="btnCancelar_Click" />
                                &nbsp;&nbsp;
                                
                                <asp:Button ID="btnConfirmar" runat="server" BackColor="#0085C6" 
                                    BorderStyle="None" Font-Bold="True" Font-Italic="False" ForeColor="#CCCCCC" 
                                    Height="23px" style="margin-top: 0px" 
                                    Text="Confirmar" ValidationGroup="1" 
                                    onclick="btnConfirmar_Click" />
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
                               
                               </td>
                        </tr>
                    </table>
                
                
                </asp:Panel>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        </table>

</asp:Content>
